import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import "@/style/reset.scss"; //重置样式
//--------------------------------------------------------------------------引入饿了么
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css"; //饿了么黑暗主题
import zhCn from "element-plus/es/locale/lang/zh-cn"; //引入中文语言包
//--------------------------------------------------------------------------引入路由
import router from "@/router/router.ts";
//--------------------------------------------------------------------------安装pinia
import pinia from "@/store";
//---------------------------------------------------------------------------全局组件
import PublicComponent from "@/components/register.ts";
//---------------------------------------------------------------------------引入阿里SVG
import "@/assets/svg/iconfont.js";

const app = createApp(App);
app.use(ElementPlus, {
    locale: zhCn,
}).use(router).use(pinia).use(PublicComponent);
router.isReady().then(() => app.mount("#app"));
